package com.yjq.yys.yhCalculate.controller;

import com.yjq.yys.yhCalculate.entity.Ss;
import com.yjq.yys.yhCalculate.service.SsService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yjq
 * @since 2019-11-19
 */
@RequestMapping("/v1/ss")
@RestController
@Api("式神控制层")
@Slf4j
public class SsController {

    @Resource
    private SsService ssService;

    @GetMapping("/list")
    public List<Ss> listSs() {
        return ssService.listSs();
    }

}
